package icu.cocoon.game.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import icu.cocoon.dao.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author Cocoon
 * @since 2020-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("game_pinyin")
@ApiModel(value = "Pinyin对象", description = "")
public class Pinyin extends BaseEntity {

  @ApiModelProperty("拼音")
  @NotBlank(message = "拼音不允许为空")
  private String pinyin;

  @ApiModelProperty("声调：1-5，5是轻声")
  @NotNull(message = "声调不允许为null")
  private Integer tone;


}
